package cn.huaqingcheng.tianshu.core.sys.service;

import cn.huaqingcheng.tianshu.core.sys.model.SysFile;
import cn.huaqingcheng.tianshu.core.sys.param.SysFileUploadParam;
import cn.huaqingcheng.tianshu.core.sys.param.SysFileUploadResponse;
import org.springframework.http.ResponseEntity;

import java.io.InputStream;
import java.net.URI;

/**
 * SysFileService
 */
public interface SysFileService {

    SysFileUploadResponse upload(InputStream is, SysFileUploadParam param);

    String toAbsoluteAddress(URI uri);

    ResponseEntity<?> read(URI uri, Boolean redirect);

    void save(SysFile file);

}
